﻿<loki:ViewControl x:Class="Luna.UI.Wpf.Accounting.AccountingCategoryListView"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:loki="clr-namespace:Loki.UI.Wpf;assembly=Loki.UI.Wpf"
                 xmlns:dxlc="http://schemas.devexpress.com/winfx/2008/xaml/layoutcontrol" 
                 xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors" 
                 mc:Ignorable="d" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                 d:DesignHeight="480" d:DesignWidth="640" xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid">
    <UserControl.Resources>

    </UserControl.Resources>
    <dxlc:LayoutControl Orientation="Vertical">
        <dxlc:LayoutItem VerticalAlignment="Stretch">
            <dxg:GridControl ItemsSource="{Binding Path=Categories}" AutoPopulateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                <dxg:GridControl.Columns>
                    <dxg:GridColumn Name="COL_Name" Header="Nom" FieldName="Name" />
                    <dxg:GridColumn Name="COL_Description" Header="Description" FieldName="Description" />
                </dxg:GridControl.Columns>
                <dxg:GridControl.View>
                    <dxg:TableView Name="VIEW_Categories" AutoWidth="True" NewItemRowPosition="Top" />
                </dxg:GridControl.View>
            </dxg:GridControl>
        </dxlc:LayoutItem>
    </dxlc:LayoutControl>
</loki:ViewControl>